<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <h:outputStylesheet name="./css/default.css"/>
        <h:outputStylesheet name="./css/cssLayout.css"/>       
        <h:outputStylesheet name="./css/estilo.css"/>       

        <title>SicGeh</title>        
    </h:head>

    <h:body>

        <div id="top">             
            <h:graphicImage library="img" name="cabecalho.jpg" width="100%" height="70" />           
        </div>

        <div id="menu">
            <h:form>
                <p:menubar styleClass="labelmenu">
                    <p:menuitem value="Inicio" url="/restrict/home.faces" />
                    <p:submenu label="Cadastros">
                        <p:menuitem value="Acesso" url="/admin/cadastroAcesso.faces" />
                        <p:menuitem value="Cidade" url="/restrict/cadastroCidade.faces">
                            <f:param name="f" value="Cadastro de cidade" />
                        </p:menuitem>
                        <p:separator />
                        <p:menuitem value="Hospede" url="/restrict/cadastroHospede.faces" />
                        <p:separator />
                        <p:menuitem value="Funcionario" url="/restrict/cadastroFucionario.faces" />
                        <p:separator />
                        <p:menuitem value="Leito" url="/restrict/cadastroLeito.faces" />                        
                    </p:submenu>

                    <p:submenu label="Hospedagem">
                        <p:menuitem value="Check in" url="/restrict/checkinHopedagem.faces" />
                        <p:separator />
                        <p:menuitem value="Hospedagem" url="/restrict/consultaHospedagem.faces" />                        
                    </p:submenu>

                    <p:submenu label="Relatórios">
                        <p:menuitem value="Relatório Por Município" url="/public/RelatorioHospedagemPorPeriodo.faces" />
                        <p:menuitem value="Relatório Total Mensal" url="/public/RelatorioMensal.faces" />
                    </p:submenu>
                    <p:menuitem value="Gerenciamento de Estoque" url="/restrict/estoque/home.faces" />

                </p:menubar>                
            </h:form>  
        </div>

        <div id="cab">
            <h5 style="color: purple; float: left; padding: 5px;">Usuário logado.: #{request.remoteUser}</h5>
            <a id="logoff" href="#{facesContext.externalContext.requestContextPath}/j_spring_security_logout">
                <h4>Sair</h4>
            </a>
        </div>
        <div id="content" class="center_content">
            <ui:insert name="content">Content</ui:insert>
        </div>
        <div id="rod"></div>

        <div id="bottom">           
            <h5>Casa de Apoio Santa Maria<br/>
                Rua Santa Maria Nº 805 - CEP 78890-000 - Sorriso-MT<br/>
                Copyright © Leonir C. Simon - 2014</h5>
        </div>

    </h:body>

</html>
